package com.flexandair.templates
{
	public class CustomObjectFile
	{
		private var _className:String = "";
		private var _classProperties:Array = new Array();
		private var _remoteMethods:Array = new Array();
		public var _dbTable:String = "";
		
		public function CustomObjectFile()
		{
		}
		
		public function set className(input:String):void {
			_className = input;
		}
		public function get className():String {
			return _className;
		}
		public function get classProperties():Array {
			return _classProperties;
		}
		public function set classProperties(input:Array):void {
			_classProperties = input;
		}
		public function get remoteMethods():Array {
			return _remoteMethods;
		}
		public function set remoteMethods(input:Array):void {
			_remoteMethods = input;
		}
		public function generateMethods(dbName:String, dbTable:String):void {
			for each (var method:String in _remoteMethods) {
				if (method == "create") {
					var rm:RemoteMethod = new RemoteMethod();
					rm._object = this;
					rm.create(dbName, dbTable);
				}
			}
		}
	}
}